import { Viewer } from 'cesium'

/**
 * @ClassName CesiumViewerStore
 * @Description CesiumViewer地图中数据存储
 * @Author xuyizhuo
 * @Date 2023/11/18 17:37
 */
export default class CesiumViewerStore {
    private static viewer: Viewer

    /**
     * 存储CesiumViewer地图对象
     * @param {Viewer} viewer
     */
    static setMap(viewer: Viewer) {
        this.viewer = viewer
    }

    /**
     * 获取CesiumViewer地图对象
     * @returns {Viewer}
     */
    static getMap() {
        return this.viewer
    }
}
